﻿using System;
using System.Collections.Generic;
using System.Text;
using Mpi.Common.Collections;
using Xeml.Document.Contracts;

namespace Xeml.Document
{
    public class OntologyTermCollection : ObservableIdCollectionBase<IOntologyTerm, string>
    {
        protected override string GetIdentifiere(IOntologyTerm item)
        {
            return item.TermId;
        }

        protected override void SetOwner(IOntologyTerm item)
        {
          
        }

        protected override void RemoveOwner(IOntologyTerm item)
        {
         
        }
    }

    public class VariableOntologyTermCollection : ObservableIdCollectionBase<IVariableOntologyTerm, string>
    {
        protected override string GetIdentifiere(IVariableOntologyTerm item)
        {
            return item.TermId;
        }

        protected override void SetOwner(IVariableOntologyTerm item)
        {

        }

        protected override void RemoveOwner(IVariableOntologyTerm item)
        {

        }
    }
}
